class AddAudienceTypeData < ActiveRecord::Migration
  def self.up
    down
    AudienceType.create(:title => 'a', :about => '青少年，一般性(当bcd或e未使用或不适用时)')
    AudienceType.create(:title => 'b', :about => '学龄前儿童(0－5岁)')
    AudienceType.create(:title => 'c', :about => '学龄儿童(5－10岁)')
    AudienceType.create(:title => 'd', :about => '少年儿童(9－14岁)')
    AudienceType.create(:title => 'e', :about => '青年(14－20岁)')
    AudienceType.create(:title => 'k', :about => '成人、学术性')
    AudienceType.create(:title => 'm', :about => '成人、通用性')
    AudienceType.create(:title => 'u', :about => '不详')
  end

  def self.down
    AudienceType.delete_all
  end
end
